export default {
  legend: {
    orient: "horizontal",
    top: "24",
    left: "0"
  },
  grid: [{ left: "20%", top: "15%", width: "65%" }],
  tooltip: {
    trigger: "item",
    position: "right",
    formatter: "{b} {d}%"
  },
  xAxis: {
    boundaryGap: false
  },
  yAxis: {},
  series: [
    {
      name: "饼图",
      type: "pie",
      radius: "70%",
      center: ["8%", "50%"],
      label: {
        normal: {
          position: "inner", // 设置标签位置，默认在饼状图外 可选值：'outer' ¦ 'inner（饼状图上）'
          formatter: function(e) {
            return Math.ceil(parseFloat(e.percent)) + "%";
          }
        }
      }
    }
  ]
};